package com.xagcdx.group1.web;


import org.springframework.web.bind.annotation.RequestMapping;

import com.google.gson.Gson;
import com.xagcdx.group1.service.DepartService;
import com.xagcdx.group1.service.RoleService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author grou1
 * @since 2020-06-09
 */
@Controller
@RequestMapping("/role")
public class RoleController {
	@Autowired
	private RoleService roleService;
	@RequestMapping("/list")
	public String list() {
		return new Gson().toJson(roleService.list(null));
	}
}

